import { http } from '@/utils/request'
import type { IGetOnlineList, IGetOnlineListRes } from './type'
const prefix = import.meta.env.VITE_API_SYS

// 查询在线用户列表
export function getOnlineList(query: IGetOnlineList & Page) {
	return http.get<IGetOnlineListRes[]>(`${prefix}/online/list`, query)
}

// 强退用户
export function forceLogout(tokenId: number) {
	return http.delete(`${prefix}/online/${tokenId}`)
}
